package cn.xxliang.platapp.controller;

import cn.xxliang.platapp.pojo.dto.ApplicationSoftwareInfoDto;
import cn.xxliang.platapp.common.BaseRespWithData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.springframework.validation.annotation.Validated;
import java.util.List;
@Validated
@RestController
@RequestMapping("/applicationSoftware")
@Api(tags = "可加速APP管理")
public class ApplicationSoftwareController {

    @PostMapping("/add")
    @ApiOperation("保存APP信息")
    public BaseRespWithData saveApplicationSoftware(@RequestBody @Valid ApplicationSoftwareInfoDto dto) {
        return new BaseRespWithData().code(200).msg("保存成功");
    }

    @GetMapping("/get")
    @ApiOperation("查询APP信息")
    public BaseRespWithData getApplicationSoftware(@RequestParam @NotNull(message = "APP ID不能为空") String applicationInfoId) {
        return new BaseRespWithData().code(200).msg("查询成功");
    }

    @GetMapping("/list")
    @ApiOperation("查询APP列表") 
    public BaseRespWithData getApplicationSoftwareList() {
        return new BaseRespWithData().code(200).msg("查询成功").data("返回所有的APP列表Map<'xxxx', List<ApplicationSoftwareInfo>>");
    }

    
} 